/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package thread;

/**
 *
 * @author c0909h1163
 */
class Thread1 extends Thread {
    //Constructor
    public Thread1() {
    }

    public void run() {
        System.out.println("*");
    }
}

class Runnable0 implements Runnable {
    //Constructor

    public Runnable0() {
    }

    public void run() {
        System.out.println("@");
    }
}

public class Main {
    //Constructor

    public Main() {
        //Run Thread1
        Thread1 t1 = new Thread1();
        t1.start();

        //Run Thread2
        Runnable0 r = new Runnable0();
        Thread t2 = new Thread(r);
        t2.start();

    }

    public static void main(String args[]) {
        new Main();

    }
}


